package com.sd.repay.service;

import com.sd.repay.pojo.PayOrder;

import java.util.List;

/**
 * @author sd
 * @Description: 交易订单Service接口
 * @date 2017年10月25日
 */
public interface PayOrderService {

    int savePayOrder(PayOrder order) throws Exception;

    PayOrder getPayOrderByService(String service, String serviceOrderNo) throws Exception;

    PayOrder getPayOrderByOrderNo(String orderNo) throws Exception;

    int writeBackPayOrderInfo(String orderNo, String acqOrderNo, String transTime, String newTransStatus, String oldTransStatus, String resCode, String resMsg) throws Exception;

    int updatePayOrderNotifyNum(String orderNo) throws Exception;

    int updatePayOrderNotifyStatus(String orderNo, String notifyStatus) throws Exception;

    List<PayOrder> getUnProfitPayOrder() throws Exception;

    List<PayOrder> getUnEndStatusPayOrder() throws Exception;

    List<PayOrder> getNeedNotifyPayOrder() throws Exception;

    List<PayOrder> getUnEndStatusPayOrderByCardNo(String cardNo) throws Exception;

    List<PayOrder> getSuccToProfitOrder() throws Exception;

    List<PayOrder> getSuccToDistribOrder() throws Exception;

    List<PayOrder> getSuccToPlatProfitOrder() throws Exception;

    int updatePayOrderProfitStatus(String orderNo) throws Exception;

    int updatePayOrderDistribStatus(String orderNo) throws Exception;

    int updatePayOrderPlatProfitStatus(String orderNo) throws Exception;

    String payOrderCallBack(String orderNo) throws Exception;
}
